package com.iplay.dahua.chapter1;

/**
 * @author dangwu
 * @since 2021/3/9 5:44 下午
 */
public class OperationDiv extends Operation{
    @Override
    public double getResult() {
        if (getNumberB() == 0) {
            return 0;
        }
        return getNumberA() / getNumberB();
    }
}
